﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;


namespace WebApplication1
{
    public class VendorClassModel 
    {  
        public string cVCCode { get; set; }

        public string cVCName { get; set; }


        public int iVCGrade { get; set; }


        public string Mcccode { get; set; }




    }


    public class VendorClassModelResult
    {
        public List<string> cVCCode { get; set; }
        public List<string> cVCName { get; set; }

        public List<int> iVCGrade { get; set; }

        public List<string> Mcccode { get; set; }

    }




    public class VendorClassModelConverter
    {
        public VendorClassModelResult Convert(List<VendorClassModel> items)
        {
            return new VendorClassModelResult
            {
                cVCCode = items.Select(item => item.cVCCode).ToList(),
                cVCName = items.Select(item => item.cVCName).ToList(),
                iVCGrade = items.Select(item => item.iVCGrade).ToList(),
                Mcccode = items.Select(item => item.Mcccode).ToList(),

            };
        }
    }
} 
